Optimal. Leaf size=82 \[ -\frac{\csc ^3(c+d x)}{3 a d}+\frac{\csc ^2(c+d x)}{2 a d}-\frac{\csc (c+d x)}{a d}-\frac{\log (\sin (c+d x))}{a d}+\frac{\log (\sin (c+d x)+1)}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.082485, antiderivative size = 82, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {2833, 12, 44} \[ -\frac{\csc ^3(c+d x)}{3 a d}+\frac{\csc ^2(c+d x)}{2 a d}-\frac{\csc (c+d x)}{a d}-\frac{\log (\sin (c+d x))}{a d}+\frac{\log (\sin (c+d x)+1)}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2833
Rule 12
Rule 44
Rubi steps
\begin{align*} \int \frac{\cot (c+d x) \csc ^3(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{a^4}{x^4 (a+x)} \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac{a^3 \operatorname{Subst}\left (\int \frac{1}{x^4 (a+x)} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac{a^3 \operatorname{Subst}\left (\int \left (\frac{1}{a x^4}-\frac{1}{a^2 x^3}+\frac{1}{a^3 x^2}-\frac{1}{a^4 x}+\frac{1}{a^4 (a+x)}\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=-\frac{\csc (c+d x)}{a d}+\frac{\csc ^2(c+d x)}{2 a d}-\frac{\csc ^3(c+d x)}{3 a d}-\frac{\log (\sin (c+d x))}{a d}+\frac{\log (1+\sin (c+d x))}{a d}\\ \end{align*}
Mathematica [A] time = 0.0440093, size = 82, normalized size = 1. \[ -\frac{\csc ^3(c+d x)}{3 a d}+\frac{\csc ^2(c+d x)}{2 a d}-\frac{\csc (c+d x)}{a d}-\frac{\log (\sin (c+d x))}{a d}+\frac{\log (\sin (c+d x)+1)}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 81, normalized size = 1. \begin{align*}{\frac{\ln \left ( 1+\sin \left ( dx+c \right ) \right ) }{da}}-{\frac{1}{3\,da \left ( \sin \left ( dx+c \right ) \right ) ^{3}}}-{\frac{1}{da\sin \left ( dx+c \right ) }}+{\frac{1}{2\,da \left ( \sin \left ( dx+c \right ) \right ) ^{2}}}-{\frac{\ln \left ( \sin \left ( dx+c \right ) \right ) }{da}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.10643, size = 88, normalized size = 1.07 \begin{align*} \frac{\frac{6 \, \log \left (\sin \left (d x + c\right ) + 1\right )}{a} - \frac{6 \, \log \left (\sin \left (d x + c\right )\right )}{a} - \frac{6 \, \sin \left (d x + c\right )^{2} - 3 \, \sin \left (d x + c\right ) + 2}{a \sin \left (d x + c\right )^{3}}}{6 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.47274, size = 281, normalized size = 3.43 \begin{align*} -\frac{6 \,{\left (\cos \left (d x + c\right )^{2} - 1\right )} \log \left (\frac{1}{2} \, \sin \left (d x + c\right )\right ) \sin \left (d x + c\right ) - 6 \,{\left (\cos \left (d x + c\right )^{2} - 1\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) \sin \left (d x + c\right ) + 6 \, \cos \left (d x + c\right )^{2} + 3 \, \sin \left (d x + c\right ) - 8}{6 \,{\left (a d \cos \left (d x + c\right )^{2} - a d\right )} \sin \left (d x + c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\cos{\left (c + d x \right )} \csc ^{4}{\left (c + d x \right )}}{\sin{\left (c + d x \right )} + 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.19256, size = 90, normalized size = 1.1 \begin{align*} \frac{\frac{6 \, \log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right )}{a} - \frac{6 \, \log \left ({\left | \sin \left (d x + c\right ) \right |}\right )}{a} - \frac{6 \, \sin \left (d x + c\right )^{2} - 3 \, \sin \left (d x + c\right ) + 2}{a \sin \left (d x + c\right )^{3}}}{6 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]